<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
    <%@ taglib uri="/struts-tags" prefix="s" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<style type="text/css">

.cell-principal {
	background-color: #555;
	color: white;
	font-weight: bold;
}
.cell-border {
	border-bottom-style: solid;
	border-left-style: solid;
	border-bottom-width: 1px;
	border-left-width: 1px;
	border-bottom-color: black;
	border-left-color: black;
	border-right: none;
	border-top: none;
}
.derecha {
	border-right: 1px solid black;
}
</style>
<title>Categorias</title>
</head>
<body>
<table border="0px" cellpadding="8px" cellspacing="0px">
	<thead style="text-align: center; color:white;background-image: url(../../../imagenes/table_head.png);">
		<tr>
			<th>DESCRIPCION</th>
			<th>ACCIONES</th>
		</tr>
	</thead>
	<s:iterator value="categorias" status="userStatus" >
		<tr>
			<td class="cell-principal cell-border"><s:property value="descripcion" /></td>
			<td class="cell-border derecha">
			<s:url action="eliminar_categoria.action" var="eliminar_categoria">
				<s:param name="categoria.idCategoria" value="idCategoria"></s:param>
			</s:url>
			<s:url action="editar_categoria.action" var="editar_categoria">
				<s:param name="categoria.idCategoria" value="idCategoria"></s:param>
			</s:url>
			<a href="${editar_categoria}">Editar</a>
			<a href="${eliminar_categoria}">Eliminar</a></td>
		</tr>
	</s:iterator>
	
</table>
</body>
</html>